﻿using System;
using System.Collections.Generic;
using System.Text;
using Server.Targeting;

namespace Server.Items.Cooking
{
    public class FishKnife : Item
    {
        [Constructable]
        public FishKnife()
            : base(0xEC4)
        {
            Weight = 1.0;
            Name = "Couteau de Poissonier";
        }

        public FishKnife(Serial serial)
            : base(serial)
        { }

        public override void OnDoubleClick(Mobile from)
        {
            from.BeginTarget(0, false, TargetFlags.None, new TargetCallback(OnTarget));
        }

        public void OnTarget(Mobile from, object target)
        {
            if (target is Fish)
            {
                Fish fish = target as Fish;
                fish.Carve(from, this);
            }
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write((int)0); // version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();
        }
    }
}
